;;; packages - package definitions for GNU Guix
;;; Copyright (C) 2017 ng0
;;;
;;; This program is free software: you can redistribute it and/or modify
;;; it under the terms of the GNU Affero General Public License as
;;; published by the Free Software Foundation, either version 3 of the
;;; License, or (at your option) any later version.
;;;
;;; This program is distributed in the hope that it will be useful,
;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;;; GNU Affero General Public License for more details.
;;;
;;; You should have received a copy of the GNU Affero General Public License
;;; along with this program.  If not, see <http://www.gnu.org/licenses/>.

(define-module (ng0 packages pen-phone)
  #:use-module (guix build-system gnu)
  #:use-module (guix build-system python)
  #:use-module (guix download)
  #:use-module ((guix licenses) #:prefix license:)
  #:use-module (guix packages)
  #:use-module (gnu packages)
  #:use-module (gnu packages curl)
  #:use-module (gnu packages python))

(define-public bandicoot
(package
  (name "bandicoot")
  (version "0.5.3")
  (source
   (origin
     (method url-fetch)
     (uri (pypi-uri "bandicoot" version))
     (sha256
      (base32
       "1kryvc0r8y1imsji1lh7byaw27vks3rdpg9rnms79h2020nfhjjw"))))
  (build-system python-build-system)
  (native-inputs
   ;; TODO: npm for js and css files of the dashboard.
   ;; These are all optional dependencies.
   `(("python-nose" ,python-nose)
     ("python-numpy" ,python-numpy)
     ("python-scipy" ,python-scipy)
     ("python-networkx" ,python-networkx)))
  (home-page "http://bandicoot.mit.edu")
  (synopsis "Toolbox to analyze mobile phone metadata.")
  (description
   "Bandicoot is Python toolbox to analyze mobile phone metadata.  It
provides a complete, easy-to-use environment for data-scientist to analyze
mobile phone metadata.  With only a few lines of code, load your datasets,
visualize the data, perform analyses, and export the results.")
  (license license:expat)))
